Resource URL: /platform/<<version=3>>/local/cluster/nodes/<LNN>/state/smartfail

    Overview: This resource applies the standard collection pattern to
              individual nodes.  LNN in the resource path is the node lnn ID.

     Methods: GET, PUT

********************************************************************************

Method GET: Retrieve node smartfail state information.

       URL: GET
            /platform/<<version=3>>/local/cluster/nodes/<LNN>/state/smartfail

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "additionalProperties": false, 
      "type": "object", 
      "properties": {
        "nodes": {
          "minItems": 0, 
          "items": {
            "type": "object", 
            "description": "Node smartfail state.", 
            "properties": {
              "smartfailed": {
                "type": "boolean", 
                "description": "This node is smartfailed (soft_devs)."
              }, 
              "dead": {
                "type": "boolean", 
                "description": "This node is dead (dead_devs)."
              }, 
              "down": {
                "type": "boolean", 
                "description": "This node is down (down_devs)."
              }, 
              "readonly": {
                "type": "boolean", 
                "description": "This node is readonly (ro_devs)."
              }, 
              "lnn": {
                "type": "integer", 
                "description": "Logical Node Number (LNN) of this node."
              }, 
              "in_cluster": {
                "type": "boolean", 
                "description": "This node is in the cluster (all_devs)."
              }, 
              "id": {
                "type": "integer", 
                "description": "Node ID (Device Number) of this node."
              }, 
              "shutdown_readonly": {
                "type": "boolean", 
                "description": "This node is shutdown readonly (down_devs)."
              }
            }
          }, 
          "type": "array", 
          "maxItems": 4294967295
        }, 
        "total": {
          "minimum": 0, 
          "type": "integer", 
          "description": "Total number of items available.", 
          "maximum": 4294967295
        }
      }
    }
  ]
}

********************************************************************************

Method PUT: Modify smartfail state of the node.  Only the 'smartfailed' body
            member has any effect on node smartfail state.

       URL: PUT
            /platform/<<version=3>>/local/cluster/nodes/<LNN>/state/smartfail

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "description": "Node smartfail state.", 
  "properties": {
    "smartfailed": {
      "type": "boolean", 
      "description": "This node is smartfailed (soft_devs)."
    }, 
    "dead": {
      "type": "boolean", 
      "description": "This node is dead (dead_devs)."
    }, 
    "down": {
      "type": "boolean", 
      "description": "This node is down (down_devs)."
    }, 
    "readonly": {
      "type": "boolean", 
      "description": "This node is readonly (ro_devs)."
    }, 
    "in_cluster": {
      "type": "boolean", 
      "description": "This node is in the cluster (all_devs)."
    }, 
    "shutdown_readonly": {
      "type": "boolean", 
      "description": "This node is shutdown readonly (down_devs)."
    }
  }
}

There is no JSON response body for this method.
